package com.situ.spring.controller;

import java.util.List;

import com.situ.spring.dao.impl.StudentDaoImpl;
import com.situ.spring.entity.Student;
import com.situ.spring.service.IStudentService;
import com.situ.spring.service.impl.StudentServiceImpl;

public class StudentController {
	//private IStudentService studentService = new StudentServiceImpl();
	private IStudentService studentService;

	public void setStudentService(IStudentService studentService) {
		this.studentService = studentService;
	}
	
	public void findAll() {
		System.out.println("StudentController.findAll()");
		List<Student> list = studentService.findAll();
	}
}
